package com.ruoyi.verify.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.verify.mapper.VerifyLevelMapper;
import com.ruoyi.verify.domain.VerifyLevel;
import com.ruoyi.verify.service.IVerifyLevelService;
import com.ruoyi.common.core.text.Convert;

/**
 * 现场审核等级Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-10-14
 */
@Service
public class VerifyLevelServiceImpl implements IVerifyLevelService 
{
    @Autowired
    private VerifyLevelMapper verifyLevelMapper;

    /**
     * 查询现场审核等级
     * 
     * @param levelid 现场审核等级ID
     * @return 现场审核等级
     */
    @Override
    public VerifyLevel selectVerifyLevelById(String levelid)
    {
        return verifyLevelMapper.selectVerifyLevelById(levelid);
    }

    /**
     * 查询现场审核等级列表
     * 
     * @param verifyLevel 现场审核等级
     * @return 现场审核等级
     */
    @Override
    public List<VerifyLevel> selectVerifyLevelList(VerifyLevel verifyLevel)
    {
        return verifyLevelMapper.selectVerifyLevelList(verifyLevel);
    }

    /**
     * 新增现场审核等级
     * 
     * @param verifyLevel 现场审核等级
     * @return 结果
     */
    @Override
    public int insertVerifyLevel(VerifyLevel verifyLevel)
    {
        return verifyLevelMapper.insertVerifyLevel(verifyLevel);
    }

    /**
     * 修改现场审核等级
     * 
     * @param verifyLevel 现场审核等级
     * @return 结果
     */
    @Override
    public int updateVerifyLevel(VerifyLevel verifyLevel)
    {
        return verifyLevelMapper.updateVerifyLevel(verifyLevel);
    }

    /**
     * 删除现场审核等级对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteVerifyLevelByIds(String ids)
    {
        return verifyLevelMapper.deleteVerifyLevelByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除现场审核等级信息
     * 
     * @param levelid 现场审核等级ID
     * @return 结果
     */
    public int deleteVerifyLevelById(String levelid)
    {
        return verifyLevelMapper.deleteVerifyLevelById(levelid);
    }
}
